import Layout from '@/layout/index.vue'
import { markRaw } from 'vue'

export default [
  {
    path: '/',
    component: markRaw(Layout),
    redirect: '/index',
    name: 'Dashboard',
    meta: {
      title: '广告管理',
      icon: 'icon-107',
      root: 'default',
      authority: '广告管理'
    },
    children: [
      {
        path: 'index',
        component: () => import('@/views/advertising/index.vue'),
        name: 'Advertising',
        meta: {
          title: '腾讯广告3.0',
          authority: '账户管理-腾讯广告3.0'
        }
      },
      {
        path: 'create-list',
        component: () => import('@/views/advertising/ads/list/index.vue'),
        name: 'IntelCreateList',
        meta: {
          title: '广告预览',
          hidden: true,
          activeMenu: 'Advertising',
          authority: '腾讯广告3.0-批量新建'
        }
      },
      {
        path: 'draft',
        component: () => import('@/views/advertising/draft/index.vue'),
        name: 'Draft',
        meta: {
          title: '草稿箱',
          hidden: true,
          activeMenu: 'Advertising',
          authority: '腾讯广告3.0-批量新建'
        }
      },
      {
        path: 'upload-manage',
        component: () => import('@/views/advertising/upload-manage/index.vue'),
        name: 'UploadManage',
        meta: {
          title: '上传管理',
          authority: '账户管理-上传管理'
        }
      },
      {
        path: 'upload-detail',
        component: () => import('@/views/advertising/upload-manage/detail.vue'),
        name: 'IntelUploadDetail',
        meta: {
          title: '查看明细',
          hidden: true,
          activeMenu: 'UploadManage',
          authority: '上传管理-查看明细'
        }
      },
      {
        path: 'ads',
        component: () => import('@/views/advertising/ads/create/index.vue'),
        name: 'AdsCreate',
        meta: {
          title: '创建广告',
          hidden: true,
          activeMenu: 'Advertising',
          authority: '腾讯广告3.0-批量新建'
        }
      },
      {
        path: 'creative',
        component: () => import('@/views/advertising/creative/create/index.vue'),
        name: 'CreativeCreate',
        meta: {
          title: '添加创意',
          hidden: true,
          activeMenu: 'Advertising',
          authority: '腾讯广告3.0-批量新建'
        }
      }
    ]
  },
  // {
  //   path: '/register',
  //   component: markRaw(Layout),
  //   name: 'Register',
  //   redirect: 'noRedirect',
  //   meta: {
  //     title: 'AI财税'
  //   },
  //   children: [
  //     {
  //       path: 'AI',
  //       component: () => import('@/views/register/index.vue'),
  //       name: 'AI',
  //       meta: {
  //         title: 'AI财税'
  //       }
  //     }
  //   ]
  // }
]
